package com.lwc.geojson.config;

import org.locationtech.jts.geom.GeometryFactory;
import org.locationtech.jts.geom.PrecisionModel;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Configurable
@Component
public class GeoJsonConf {

    @Bean
    public GeometryFactory geometryFactory() {
        // SRID 4326 表示WGS84坐标系统
        return new GeometryFactory(new PrecisionModel(), 4326);
    }
}
